package functional;

import java.util.function.Function;

public class Demo1 {
    public static void main(String[] args) {
//        Function function = new Function<String,String>() {
//            @Override
//            public String apply(String o) {
//                return o;
//            }
//        };
        //Function<String,String> function = (a)->{return a;};
        Function<String,String> function = (a)-> a;

        System.out.println(function.apply("dasdasd"));
    }
}
